from django.contrib.auth.mixins import LoginRequiredMixin
from django.views import View



class MyloginRequiredview(LoginRequiredMixin,View):
    login_url = "/login"
    redirect_field_name = "ref" #REFFER来路的意思